import axios from 'axios'

// 上传封面
export const uploadCoverApi = formData => {
    return axios.post('/api/article/cover', formData, {
        headers: {
            'Content-Type': 'multipart/form-data'
        }
    })
}

// 上传图片
export const uploadImgApi = formData => {
    return axios.post('/api/article/image', formData, {
        headers: {
            'Content-Type': 'multipart/form-data'
        }
    })
}